using Neodatis.Odb.Main;
using Neodatis.Odb.Core.Query;
using Neodatis.Odb.Core.Query.Criteria;
using Neodatis.Odb.Core;
using Neodatis.Odb.Tool;
using System;

namespace AddressBook
{
	
	
	public class DataLayer
	{
		protected String DataLocation = null;
		protected ODB	DataConnection = null;
		 
		public DataLayer()
		{
			
		}
		
		public bool Connect()
		{
			try{
			DataConnection = ODBFactory.Open(DataLocation);
			return true;
			}
			catch(Exception e)
			{
				return false;
			}
		}
		
		
	}
}
